package com.whut.mapper;

import com.whut.model.Measureresult;
import com.whut.model.Measureresulttype;
import com.whut.model.Measuretablerecord;
import com.whut.v_model.MeasureQualifiedRateItem;

import java.util.List;

public interface MeasureresultMapper {

    int deleteByPrimaryKey(Integer mKey);

    int insert(Measureresult record);

    int insertSelective(Measureresult record);

    Measureresult selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Measureresult record);

    int updateByPrimaryKey(Measureresult record);

    /*WYH*/
    /*scslFTL*/
    List<Measuretablerecord> getProjectName(int recordId);

    List<Measureresult> getFromData(int recordId);

    List<Measureresulttype> getResultType(int resultTypeId);

    int getmKey(int recordId);

    /**
    * 通过记录的ID找到 其下所有测点类型的合格率用以显示结果
    *@author fuzhenjie
    *@date 19.9.23 12:08(GMT)
    *@param recordId 记录Id
    *@return java.util.List<com.whut.v_model.MeasureQualifiedRateItem>
    */
    List<MeasureQualifiedRateItem> getRateShowItem(int recordId);
}